<?php
/**
 * +------------------------------
 * Created by PhpStorm.
 * +------------------------------
 * User: xxx
 * +------------------------------
 * DateTime: 2020/3/4 13:51
 * +------------------------------
 */

/**
 * 入口
 * Class MainController
 */
class MainController extends Controller
{
    public function actionIndex()
    {

        $this->json(1, DemoModel::doCreate());
    }

    public function actionMsg()
    {

        $res = Requests::get('http://www.baidu.com/s')->text();
        echo $res;

//        $res = Requests::post('http://192.168.101.241:8888/get_play_info', [], ['json' => true])->json();
//        print_r($res);

    }

}